package chapter04

import "github.com/gin-gonic/gin"

func Router(chap04 *gin.RouterGroup) {
	//ShouldBind()用法
	chap04.GET("/should_bind", ToShouldBind)
	chap04.POST("/Doshould_bind", DoShouldBind)
	//BingQuery()用法
	chap04.GET("/bind_query", BindQuery)

	chap04.GET("/to_valid", ToValidData)
	chap04.POST("/do_valid", DoValidData)
}
